package com.tencent.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tencent.entity.Member;
import com.tencent.mapper.MemberYMapper;
import com.tencent.service.LoginService;
import com.tencent.service.MemberYService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;

/**
 * @author: Fame
 * @date: 2022-08-31 15:17
 * @description:
 */
@Service
public class MemberYServiceImpl extends ServiceImpl<MemberYMapper, Member>implements MemberYService {

    @Autowired(required = false)
    private MemberYMapper memberYMapper;

    @Override
    public String getLevel(Integer id) {

        return memberYMapper.getLevelById(id);
    }

}
